package com.pocket.insight.base.sql.constant;

import java.util.regex.Pattern;

/**
 * 描述：
 *
 * @author shuize
 * @create 2024/12/14
 */
public class PatternConst {

    public static final Pattern CONVERT_PATTERN           = Pattern.compile("^convert[(][(](.*?)[)]::bytea,('utf-8'|'UTF-8'),('gb18030'|'GB18030')[)]( asc| desc| ASC| DESC)?$");
    public static final Pattern FOOT_LINE_COMMENT_PATTERN = Pattern.compile("^(?!--)^(.*)?--(?!>)(.*)?$");
    public static final Pattern PURE_NUMBER_PATTERN       = Pattern.compile("[0-9]*");
    public static final String TAB_BACKGROUND_IMAGE_PATH = "/**/apps/{appId}/dashboards/{dashboardId}/images/{imageId}";
    public static final String MACRO_DEF_PATTERN = "\\{\\{!!.+?\\}\\}";
    public static final String MONGODB_QUERY_PATTERN = "^db\\.[^\\.].+?[^\\.]\\.aggregate\\(\\[.*\\]\\)$";
    public static final String MONGODB_QUERY_PREFIX = "db\\.[^\\.].+?[^\\.]\\.aggregate\\(";
    public static final String MONGODB_HS_QUERY_PATTERN = "^.*[^\\.]\\.\\[.*\\]$";
    
}
